package com.ming.easyDevelop.entity.po;

import java.io.Serializable;
import java.util.Date;
import com.ming.easyDevelop.utils.DateUtils;
import com.ming.easyDevelop.entity.baseEnum.DateTimePatternEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description 
 * @Author ming
 * @Date 2024/07/10
 */
public class Users implements Serializable {


	public Users(){
	}	public Users(Integer userID, String username, String email, String password, String firstName, String lastName, String phone, Date registrationDate, Date lastLoginDate, Integer isActive){
		this.userID = userID;
		this.username = username;
		this.email = email;
		this.password = password;
		this.firstName = firstName;
		this.lastName = lastName;
		this.phone = phone;
		this.registrationDate = registrationDate;
		this.lastLoginDate = lastLoginDate;
		this.isActive = isActive;
	}	/**
	 * 
	 */
	private Integer userID;

	/**
	 * 
	 */
	private String username;

	/**
	 * 
	 */
	private String email;

	/**
	 * 
	 */
	private String password;

	/**
	 * 
	 */
	private String firstName;

	/**
	 * 
	 */
	private String lastName;

	/**
	 * 
	 */
	private String phone;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date registrationDate;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date lastLoginDate;

	/**
	 * 
	 */
	private Integer isActive;

	public void setUserID(Integer userID){
		this.userID = userID;
	}

	public Integer getUserID(){
		return this.userID;
	}

	public void setUsername(String username){
		this.username = username;
	}

	public String getUsername(){
		return this.username;
	}

	public void setEmail(String email){
		this.email = email;
	}

	public String getEmail(){
		return this.email;
	}

	public void setPassword(String password){
		this.password = password;
	}

	public String getPassword(){
		return this.password;
	}

	public void setFirstName(String firstName){
		this.firstName = firstName;
	}

	public String getFirstName(){
		return this.firstName;
	}

	public void setLastName(String lastName){
		this.lastName = lastName;
	}

	public String getLastName(){
		return this.lastName;
	}

	public void setPhone(String phone){
		this.phone = phone;
	}

	public String getPhone(){
		return this.phone;
	}

	public void setRegistrationDate(Date registrationDate){
		this.registrationDate = registrationDate;
	}

	public Date getRegistrationDate(){
		return this.registrationDate;
	}

	public void setLastLoginDate(Date lastLoginDate){
		this.lastLoginDate = lastLoginDate;
	}

	public Date getLastLoginDate(){
		return this.lastLoginDate;
	}

	public void setIsActive(Integer isActive){
		this.isActive = isActive;
	}

	public Integer getIsActive(){
		return this.isActive;
	}

	@Override
	public String toString(){
		return "Users = {" + 
				"userID() = " + this.userID + 
				",username() = " + this.username + 
				",email() = " + this.email + 
				",password() = " + this.password + 
				",firstName() = " + this.firstName + 
				",lastName() = " + this.lastName + 
				",phone() = " + this.phone + 
				",registrationDate() = " + DateUtils.format(this.registrationDate,DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) + 
				",lastLoginDate() = " + DateUtils.format(this.lastLoginDate,DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) + 
				",isActive() = " + this.isActive + 
			"}";
	}
}